package com.k2data.k2app.domain.po.v2;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.k2data.k2app.constant.Constant;
import com.k2data.k2app.domain.po.Customer;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author lidong9144@163.com 17-3-20.
 */
@Data
@Table(name = "feedback")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class FeedbackPO implements Serializable {
    @Id
    @GeneratedValue(generator = "JDBC")
    private Long id;
    private Long customerId;
    private Long userId;
    private String problemTitle;
    private String problemType;
    private String problemDesc;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    private LocalDateTime feedbackTime;


    @Transient
    private String userName;
    @Transient
    private String userPhoto;
    @Transient
    private Customer customer;
    @Transient
    private List fileList;


    @JsonIgnore
    @Transient
    private String orderBy;

    @Transient
    @JsonIgnore
    private Integer pageNum ;
    @Transient
    @JsonIgnore
    private Integer pageSize ;
}
